<template>
  <div class="app">
    <h1>{{msg}}</h1>
    <School />
    <Student />
  </div>
</template>

<script>
  // 引入Student组件
  import Student from "./components/Student"
  // 引入School组件
  import School from "./components/School"

  export default {
    name: "App",
    components: {
      Student,
      School
    },
    data() {
      return {
        msg: "你好啊"
      }
    },
    mounted() {
      // console.log(window.x);
      console.log('App', this.$bus);
    }
  };
</script>

<style>
  .app {
    background-color: skyblue;
    padding: 5px;
  }
</style>